<?php echo $this->form; ?>
<input type="hidden" id="lid" value="<?php echo $this->lid; ?>" />
<script type="text/javascript">
    $(document).ready(function(){
        $('#loanBtn').click(function(){
            var pdata = $('#frmLoan').serialize();
            pdata = pdata + "&lid="+$('#lid').val();
           $.post('<?php echo $this->baseUrl('service/loan/edit')?>',pdata,function(data){
               $('#ss').html(data);

           })
           $(this).load('<?php echo $this->baseUrl('customer/show/')?>'+$('#cid').val(),'',function(){});
        });
    });
</script>
